// Deshabilitamos seleccion de texto
function disableselect(e) {return false}
function reEnable() {return true}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar) {
   document.onmousedown=disableselect
   document.onclick=reEnable
};



/*
 * evento randomize para arrays. Desordena todos sus elementos.
 */
Array.prototype.randomize = function () {
	// Array temporal, copia del original.
	var $arrTmp = new Array (this.length);
	var $arrTmpIndRnd = new Array (this.length);
	var $arrIndRnd = new Array (this.length);

	for (var $i = 0; $i < $arrTmpIndRnd.length; $i++) $arrTmpIndRnd[$i]=$i;
	$arrTmp = this.copy ();

	// Quitar y poner (los grosos le dice 'Pick and Drop')
	for (var i = 0; $arrTmp.length; i ++) {
		var rndNum = $random (0, ($arrTmp.length -1));
		this[i] = $arrTmp[rndNum];
		$arrIndRnd[i] = $arrTmpIndRnd[rndNum];
		
		$arrTmp.splice (rndNum, 1);
		$arrTmpIndRnd.splice (rndNum, 1);
	};
	return $arrIndRnd;			
}
